package cn.edu.sdjzu.xg.eagle.entity;

import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class User implements Comparable<User>{
    private Long id;
    private String username;
    private String password;
    private LocalDateTime loginTime;
    private String no;
    private Teacher teacher;

    public User(Long id, String no, String username, Teacher teacher) {
    }

    public User( String username, String no, Teacher teacher) {
        super();
        this.username = username;
        this.no = no;
        this.teacher = teacher;
    }

    public User(Long id, String username, String password, LocalDateTime loginTime, Teacher teacher, String no) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.loginTime = loginTime;
        this.teacher = teacher;
        this.no = no;
    }

    public User(String password, LocalDateTime loginTime, String username, Long id) {
        this.password = password;
        this.loginTime = loginTime;
        this.username = username;
        this.id = id;
    }

    @Override
    public int compareTo(User o) {
        return 0;
    }

}

